﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Entities.Mater
{
    // <summary>
    /// 物料类型信息
    /// </summary>
    public class MaterType:BaseEntity<string>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public override string Id { get; set; }

        /// <summary>
        /// 物料类型编码
        /// </summary>
        public string? MT_Code { get; set; }

        /// <summary>
        /// 物料类型名称
        /// </summary>
        public string? MT_Name { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remaker { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }

        public MaterType()
        {
            // 如果ID为空，自动生成GUID
            if (string.IsNullOrEmpty(Id))
            {
                Id = Guid.NewGuid().ToString();
            }
        }
    }
}
